<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<html>
<head>
<title>Search Page</title>
</head>
<body>
<form action="SearchPro.do" method="post">
<center>
<table cellpadding=4 cellspacing=2 border=0>
	<tr>
		<th width="50%">Description</th>
		<th width="55%">Detail</th>
	</tr>
	<tr>
		<td><select name="type">
            <option>Product Number</option>
            <option>Product Name</option>
        </select>
        </td>
		<td><input type="text" name="detail" value=""
			size=15 maxlength=20></td>
	</tr>    
</table>
    <br>
    <input type="submit" value="submit">&nbsp;&nbsp;
        <input type="reset" value="reset"><br><br>
</center>
 <center>
<table cellpadding="1" cellspacing="1" border="1">   
	<tr>
		<th>Product Number</th>
		<th>Product Name</th>
		<th>Unit Price</th>
        <th>Description</th>
        <th>Color</th>
        <th>Dimension</th>
        <th>Manufacturer</th>
        <th>Reorder Level</th>
        <th>Minimum Order</th>
        <th>Shelf Location</th>
        <th>Instock</th>
	</tr>
	<c:forEach var="product" items="${products}" varStatus="status">
	<tr>
			<td>${product.productnum}</td>
            <td>${product.name}</td>
            <td>${product.unitprice}</td>
            <td>${product.description}</td>
            <td>${product.color}</td>
            <td>${product.dimension}</td>
            <td>${product.manufacturer}</td>
            <td>${product.reorderlevel}</td>
            <td>${product.minorder}</td>
            <td>${product.shelflocation}</td>
            <td>${product.instock}</td>
		</tr>
	</c:forEach>    
</table>
</center>
</body>
</html>